package cn.zx.observer;

import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

public class MyStartApplicationListner implements ApplicationListener<ApplicationStartingEvent> {

	// 	ApplicationStartingEvent 加 @Component 无法监听
	@Override
	public void onApplicationEvent(ApplicationStartingEvent event) {
		System.out.println("ApplicationStartingEvent log================================");
	}
}
